<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" th:with="title='登录',active='home'">
<head>
    <meta charset="utf-8" />
    <title>登录页面</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }
        body {
            background: linear-gradient(120deg, #4facfe, #00f2fe);
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .box {
            width: 400px;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            padding: 40px 30px;
        }
        .tit {
            font-size: 26px;
            text-align: center;
            margin-bottom: 30px;
            color: #333;
        }
        .zc_username, .zc_password {
            margin-bottom: 20px;
        }
        .zc_tit {
            display: block;
            font-size: 14px;
            margin-bottom: 6px;
            color: #666;
        }
        .username, .pass_word {
            width: 100%;
            padding: 10px;
            font-size: 14px;
            border: 1px solid #ccc;
            border-radius: 6px;
            transition: border-color 0.3s;
        }
        .username:focus, .pass_word:focus {
            border-color: #4facfe;
            outline: none;
        }
        .btn-ty {
            width: 100%;
            padding: 12px;
            background-color: #4facfe;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            color: #fff;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .btn-ty:hover {
            background-color: #00c3ff;
        }
        .cstyle {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: #666;
        }
        .cstyle a {
            color: #4facfe;
            text-decoration: none;
        }
        .cstyle a:hover {
            text-decoration: underline;
        }
        .error {
            color: red;
            font-size: 12px;
        }
    </style>
</head>
<body>
<div class="box">
    <form action="http://localhost:8893/admin/login" method="get">
        <p class="tit">登陆验证</p>

        <div class="zc_username">
            <span class="zc_tit">用户名</span>
            <input type="text" id="userName" name="uname" class="username" />
        </div>

        <div class="zc_password">
            <span class="zc_tit">密&nbsp;&nbsp;&nbsp;码</span>
            <input type="password" id="password" name="upassword" class="pass_word" />
            <label class="error" id="pass_word_error"></label>
        </div>

        <input id="btn-ty" class="btn-ty" type="submit" value="登录">

        <p class="cstyle">没有账号？<a href="http://localhost:8893/admin/toregister">立即注册</a></p>
    </form>
</div>
</body>
</html>
